<style>
    body {
        background-color: #ffffff;
    }

    .layui-iconpicker-body.layui-iconpicker-body-page .hide {
        display: none;
    }
</style>

<div class="layui-form layuimini-form">

    <input type="hidden" value="{$model->id}" name="id">

    <div class="layui-form-item">
        <label class="layui-form-label required">留言标题</label>
        <div class="layui-input-block">
            <input disabled type="text" autocomplete="off" name="title" class="layui-input"
                   placeholder="" value="{$model->title}">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">留言内容</label>
        <div class="layui-input-block">
            <textarea disabled name="content" class="layui-textarea" placeholder="">{$model->content}</textarea>
        </div>
    </div>

    {include file="layout/other/uploader_img" label="图片" name="images" verify="" num="99" value="$model.images" /}

    <div class="layui-form-item">
        <label class="layui-form-label">处理状态</label>
        <div class="layui-input-block">
            <select name="is_deal" lay-filter="is_deal">
                <option value="0" {if $model->is_deal==0} selected="" {/if}>未处理</option>
                <option value="1" {if $model->is_deal==1} selected="" {/if}>已处理</option>
            </select>
        </div>
    </div>

    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn layui-btn-normal" lay-submit lay-filter="saveBtn">确认保存</button>
        </div>
    </div>
</div>

<script>
    layui.use(['form', 'laydate'], function () {
        var form = layui.form,
            layer = layui.layer,
            $ = layui.$;
        form.on('submit(saveBtn)', function (data) {
            var post_data = data.field;
            postData("{:url('message/edit')}", post_data, '修改成功');
            return false;
        });
    });
</script>